package ten;

/**
 * @author zzb
 * @since 2021-01-13
 */

//Test
public class Test {

  public static void main(String[] args) {
    ServiceA sa = new ServiceAImpl();
    ServiceB sb = new ServiceBImpl();

    sa.methodA();//这是服务A
    sb.methodB();//这是服务B
    System.out.println("========");
    //facade
    Facade facade = new Facade();
    facade.methodA();//这是服务A//这是服务B
    facade.methodB();//这是服务B//这是服务C
  }
}
